<script>
import columns from "./config/columns.config.js";
import KtTable from "/src/components/node-kantboot/components/KtTable/KtTable.vue";
import PermissionsDialog from "./components/PermissionDialog.vue";

export default {
  components: {KtTable, PermissionsDialog},
  data() {
    return {
      columns
    }
  },
  created() {
  },
  mounted() {

  },
  methods: {

  }
}
</script>

<template>
<kt-table
    :columns="columns"
    requestUri="/system-auth/admin/role"
    ref="ktTable">
  <template #operationAppend="{row}">
    <el-button type="primary" size="mini" @click="$refs.permissionsDialog.open(row)">
      {{$i18n.enToGlobal("Permission list")}}
    </el-button>
  </template>
</kt-table>

  <permissions-dialog ref="permissionsDialog"></permissions-dialog>
</template>

<style scoped>

</style>